const mongoose = require('mongoose')
const { Schema } = mongoose

const categorySchema = new Schema({
  id: Number,
  name: String,
  imageUrl: String,
  note: String,
}, { _id: false })

const CategoryModel = mongoose.model('Category', categorySchema)

module.exports = CategoryModel
